package com.emm.yixun.jobs;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import com.emm.yixun.common.app.base.CommonResDTO;
import com.emm.yixun.system.service.NoticeServiceFacade;

/***
 * 客户维护消息推送
 * 描述:
 * 	对超时未跟进的客户进行统计,并提醒经纪人
 *  超时定义: 超过设置天数的下一天
 */
@Component
public class CustomerManagePushMsgJob {
	 private static Logger logger = LoggerFactory.getLogger(CustomerManagePushMsgJob.class);

	 @Autowired
	 private NoticeServiceFacade noticeServiceFacade;
	 
     @Scheduled(cron="${quartz.cron.pushCusManageNotice}")
     public void pushCustomerManageMsg(){
    	 logger.info("推送客户维护消息 job start..........");
    	 CommonResDTO resDto = noticeServiceFacade.customerManagePushMsg();
    	 if("1".equals(resDto.getResult())){
    		 logger.info("推送客户维护消息成功");
    		 
    	 }
    	 logger.info("推送客户维护消息 job end..........");
     }
     

}
